package com.yjd.comm.borrow.model;

import com.yjd.comm.base.model.Model;

/**
 * <b>description</b>：投资回款报表模型<br>
 * <b>time</b>：2014-11-17 11:04:36 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public class ProfitFormModel extends Model {

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private Long id;
	/**
	 * 标的id
	 */
	private Long borrow_id;
	/**
	 * 债权id
	 */
	private Long creditor_id;
	/**
	 * 回款人id(即投资人id)
	 */
	private Long user_id;
	/**
	 * 第几期
	 */
	private Integer limit;
	/**
	 * 金额(capital+interest+raise_interest_price)
	 */
	private Double price;
	/**
	 * 本金
	 */
	private Double capital;
	/**
	 * 利息（从借款方收到的利息）
	 */
	private Double interest;
	/**
	 * 应还款日期
	 */
	private Long reday;
	/**
	 * 状态,0:未还，1：已还
	 */
	private Integer status;
	/**
	 * 最后更新时间
	 */
	private Long uptime;

	/**
	 * 加息金额
	 */
	private Double raise_interest_price;
	/**
	 * 加息率，百分比，1表示1%
	 */
	private Double raise_interest_rate;

	public ProfitFormModel() {
	}

	public ProfitFormModel(Long borrow_id, Long user_id, Integer limit,
			Double price, Double capital, Double interest, Long reday,
			Integer status, Long uptime, Long version, Long creditor_id) {
		this.borrow_id = borrow_id;
		this.user_id = user_id;
		this.limit = limit;
		this.price = price;
		this.capital = capital;
		this.interest = interest;
		this.reday = reday;
		this.status = status;
		this.uptime = uptime;
		this.version = version;
		this.creditor_id = creditor_id;
		this.raise_interest_price = 0D;
		this.raise_interest_rate = 0D;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getBorrow_id() {
		return borrow_id;
	}

	public void setBorrow_id(Long borrow_id) {
		this.borrow_id = borrow_id;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getCapital() {
		return capital;
	}

	public void setCapital(Double capital) {
		this.capital = capital;
	}

	public Double getInterest() {
		return interest;
	}

	public void setInterest(Double interest) {
		this.interest = interest;
	}

	public Long getReday() {
		return reday;
	}

	public void setReday(Long reday) {
		this.reday = reday;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getUptime() {
		return uptime;
	}

	public void setUptime(Long uptime) {
		this.uptime = uptime;
	}

	public Long getCreditor_id() {
		return creditor_id;
	}

	public void setCreditor_id(Long creditor_id) {
		this.creditor_id = creditor_id;
	}

	public Double getRaise_interest_price() {
		return raise_interest_price;
	}

	public void setRaise_interest_price(Double raise_interest_price) {
		this.raise_interest_price = raise_interest_price;
	}

	public Double getRaise_interest_rate() {
		return raise_interest_rate;
	}

	public void setRaise_interest_rate(Double raise_interest_rate) {
		this.raise_interest_rate = raise_interest_rate;
	}

}
